package com.ycrlkj.android.modulescore.main.activity.app;

import androidx.appcompat.app.AppCompatActivity;
import android.os.Bundle;
import com.alibaba.android.arouter.facade.annotation.Route;
import com.ycrlkj.android.modulescore.main.R;
import com.ycrlkj.android.modulescore.main.databinding.ActivityAgreementBinding;
import com.ycrlkj.android.modulespublic.common.constant.RoutePath;
import com.ycrlkj.android.modulespublic.common.widget.titlebar.MTitleBar;

import dagger.hilt.android.AndroidEntryPoint;

@AndroidEntryPoint
@Route(path = RoutePath.PAGE_AGREEMENT)
public class AgreementActivity extends AppCompatActivity {

    private ActivityAgreementBinding binding;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        binding = ActivityAgreementBinding.inflate(getLayoutInflater());

        setContentView(binding.getRoot());

        initTitleBar();
    }

    public void initTitleBar(){
        MTitleBar mTitleBar = binding.mTitleBar;

        mTitleBar.setBtnEvents(new MTitleBar.BtnEvents() {
            @Override
            public void setBtnLeftOnClickListener() {
                finish();
            }

            @Override
            public void setBtnRightOnClickListener() {

            }
        });
    }

}